home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
PROGNG_C
/
TCHK060.LZH
/
DEMODISK.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-01-15
|
506b
|
18 lines
/* demodate.c - used for testing TCHK date conversions */
#include <howard.h>
#include <ibm.h>
main()
{
union REGS regs;
byte id;
printf("DemoDisk.c - a demonstration of the disktype() of TCHK\n\n");
for (drives=0; drives<26; drives++) /* drives A - Z */
if ((id = disktype(drives)) != DISK_ERROR) /* valid drive? */
printf("Drive %C: has an id byte of %X\n",'A'+drives,id);
printf("\nSee ibm.h for explanations of the id byte\n");
}